package com.avantis.common.entity;

import com.avantis.common.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: tracywang
 * @Date: 2018/12/25
 * @Descrption:
 */
@Entity
@Table(name = "k_company")
@Data
public class Company  extends BaseEntity implements Serializable  {

    /**
     * 公司名称
     */
    @Column
    private String companyName;

    /**
     * 公司编码
     */
    @Column
    private String companyCode;

    /**
     * 用户数
     */
    @Column
    private Integer count=1;

    /**
     * 开户日期
     */
    @Column
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date openDate;

    /**
     * 到期日期
     */
    @Column
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date dueDate;

    /**
     * 所属行业
     */
    @Column
    private String category;

    /**
     * 公司地址
     */
    @Column
    private String address;

    /**
     * 网址
     */
    @Column
    private String webSite;

    /**
     * 单位电话
     */
    @Column
    private String telephone;

    @Column
    private String logo;

    @Column
    private String weChat;

    @Column
    private String email;

    @Column
    private String postcode;

    @Column
    private String fax;

    @Column
    private String remark;

}
